#pragma once
#include <string>

#include <refbase.h>

#include "adder.h"

class Calc : public RefBase {
public:
    Calc(const sptr<Adder> &adder);
    ~Calc() = default;

    int Parse(const std::string &exp);

private:
    sptr<Adder> adder = nullptr;
};
